<?php
namespace App\Services;

/**
 *
 * 服务层基础类
 *
 * @author maqu
 *
 */
class BaseService {
    protected function failure($msg=''){
        return [
            'result'=>false,
            'msg'=>$msg,
        ];
    }

    protected function success($data=null){
        return [
            'result'=>true,
            'data'=>$data
        ];
    }
}
